﻿.menu-card {
    max-width: 100%;
    height: 10vh;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    /*color: #021526;*/
    font-family: 'Poppins', sans-serif;
}

/* Labels and Text */
label {
    font-size: 0.75rem;
    font-weight: 300;
    /*color: #373b3E;*/
    padding: 0 0 5px;
}

.card {
    margin-bottom: 5px;
}
.container {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    padding: 0.625rem;
    margin-top: 10px;
}

    /* Form Groups */
    .container .form-group {
        margin-top: 0.625rem;
        margin-left: 0.625rem;
    }

    .container .form-switch {
        margin-top: 7px;
    }

/* Form Controls */
.form-control, .form-select {
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #d1d1d1;
    font-size: 0.875rem;
    /*color: #373b3E;*/
    padding: 10px 15px;
    height: 40px;
    font-family: 'Poppins', sans-serif;
}

    .form-control:hover {
        border: 1px solid #f2f2f2; /* Hover border color */
    }

option {
    font-size: 0.75rem;
    font-weight: 300;
   /* color: #373b3E;*/
    font-family: 'Poppins', sans-serif;
}

/* Button Styles */
.btn-close {
    /*color: #E72929;*/
}

    .btn-close:hover {
        color: #ff8282;
    }

.secATMSBtn {
    display: flex;
    border-radius: 5px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    background-color: #1b1b1b;
    color: white;
    margin-left: 3px;
    justify-content: center;
    height:37px;
}

.generalsetup {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    max-height: calc(100vh - 160px);
}

:root[data-bs-theme='light'] .secATMSBtn {
    background-color: #1b1b1b;
    color: white;
}


:root[data-bs-theme='dark'] .secATMSBtn {
    /*//background-color: #6359E9;*/
    background: #2d2d2d;
    color: white; /* Light text color */
}



:root[data-bs-theme='light'] .custom-view-button {
    background-color: #fff;
    color: black;
}


:root[data-bs-theme='dark'] .custom-view-button {
    /* background-color: #6359E9;*/
    background: #2d2d2d;
    color: white; /* Light text color */
}
.custom-view-button {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000; /* Black text */
    background-color: #fff;
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 11px; /* Pill shape */
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap; /* Prevent text wrapping */
}

    .custom-view-button:hover {
        background-color: #f3f4f6; /* Light hover effect */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }


/*///////////////////home////////////////////////*/

.hover-card {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

@media (max-width: 1360px) {
    .chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .chart-grid {
        grid-template-columns: 1fr;  
        gap: 5px;
    }
}
@media (max-width: 600px) {
    .chart-item {
        border: 1px solid #e0e0e0; /* Light grey */
        border-radius: 8px;
        /*background: #fff;*/
        margin-bottom: 5px;
        /* Optional: add a little padding for better appearance */
        padding: 8px 4px;
    }
}
/*//////////////////////////////////////////////dashboard///////////////////////////////////////*/

/*.multi-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));*/ /* auto layout based on space and number of cards */
    /*gap: 24px;
}*/

.multi-dashboard-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 400px; /* Set a fixed height */
}

.card-header {
    padding: 12px 16px 12px 16px;
    border-bottom: none;
    background: none;
}
.seccardheader {
    padding: 12px 16px 12px 16px;
    background: #ecf6ff;
    border-bottom: none;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 8px 16px 16px 16px;
}
.card-footer {
    padding: 12px 16px;
    /*background: #ecf6ff;*/
}

.multi-dashboard-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; /* Default: 1 card per row */
}

@media (min-width: 1360px) {
    .multi-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .multi-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.ecb-dashboard-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}
@media (max-width: 767.98px) {
    .multi-dashboard-card .legend-table {
        margin-top: 1rem;
        
    }
}
@media (max-width: 767.98px) {
    .multidashboardcardheight {
        height: 650px;
    }
}
th {
    color: grey;
    font-weight: 300;
    font-size: 12px;
}
tr {
    height: 30px;
    font-size: 14px;
}


/*for quickgrid fixed width*/
.sec_fixedwidth-100 {
    width: 100px;
}

.secwidth-100 {
    min-width: 100px;
}

.secwidth-150 {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secwidth-175 {
    min-width: 175px;
}

.secpadding-0 {
    padding: 0 !important;
}

.quickgrid thead th {
    position: sticky;
    top: 0;
    /*//background: #f8f9fa;*/
   
    font-weight: bold;
    /*border-bottom: 2px solid #dee2e6;*/
}
/* Used For override default gap in heading */
.quickgrid[theme=default] {
    --col-gap: 0px !important;
}
.form-floating > label {
    z-index: initial !important;
}

/*For Map*/
/*#deviceMap, #deviceMap * {
    cursor: default !important;
}*/
/* Increase popup width globally */



.maplibregl-popup {
    width: 250px !important; /* Adjust the width as needed */
}

:root {
    /* Primary color */
    --bs-primary: #574FE6;
    --bs-primary-rgb: 87, 79, 230;
}

/* Primary buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #574FE6;
    --bs-btn-border-color: #574FE6;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a43cc; /* darker shade for hover */
    --bs-btn-hover-border-color: #4a43cc;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3f3bb3; /* even darker for active */
    --bs-btn-active-border-color: #3f3bb3;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #574FE6;
    --bs-btn-disabled-border-color: #574FE6;
}

/* Outline primary buttons */
.btn-outline-primary {
    --bs-btn-color: #574FE6;
    --bs-btn-border-color: #574FE6;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #574FE6;
    --bs-btn-hover-border-color: #574FE6;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3f3bb3;
    --bs-btn-active-border-color: #3f3bb3;
    --bs-btn-disabled-color: #574FE6;
    --bs-btn-disabled-border-color: #574FE6;
}

/* Nav pills */
.nav-pills .nav-link {
    color: #574FE6;
}

    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        background-color: #574FE6;
        color: #fff;
    }



/* Custom project button */
/*.btn.secATMSBtn {
    background-color: #574FE6;
    border-color: #574FE6;
    color: #fff;
}

    .btn.secATMSBtn:hover,
    .btn.secATMSBtn:focus {
        background-color: #574FE6;
        border-color: #574FE6;
        color: #fff;
    }*/



/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 0px; /* hides the scrollbar */
    background: transparent; /* optional */
}

/* Firefox */
* {
    scrollbar-width: none; /* hides the scrollbar */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Optional: hide scrollbar for elements with overflow */
.scrollable {
    overflow: auto; /* still scrollable */
}



/* Opt-in visible scrollbars for elements that need them */
.show-scrollbar {
    -ms-overflow-style: auto; /* IE/old Edge */
    scrollbar-width: thin; /* Firefox */
}

    .show-scrollbar::-webkit-scrollbar {
        width: 8px; /* Chrome/Safari/Edge */
        height: 8px;
    }

    .show-scrollbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .show-scrollbar::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.35);
        border-radius: 4px;
    }

        .show-scrollbar::-webkit-scrollbar-thumb:hover {
            background-color: rgba(0,0,0,0.5);
        }


/* ACCIDENT POPUP ONLY */

.accident-map-popup .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    min-width: 320px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.accident-map-popup .maplibregl-popup-close-button {
    font-size: 18px;
    right: 10px;
    top: 8px;
}

.accident-popup-wrapper table {
    margin-bottom: 0;
}

.accident-popup-wrapper td {
    padding: 10px 14px;
    font-size: 14px;
    vertical-align: middle;
}

    .accident-popup-wrapper td:first-child {
        font-weight: 600;
        color: #222;
        width: 55%;
    }

    .accident-popup-wrapper td:last-child {
        text-align: right;
        font-weight: 700;
    }


/* ACCIDENT DETAILS MAP */

.accident-map-wrapper {
    position: relative;
    overflow: visible !important;
}

    .accident-map-wrapper .maplibregl-map {
        overflow: visible !important;
    }

    .accident-map-wrapper .maplibregl-canvas-container {
        overflow: visible !important;
    }

    .accident-map-wrapper .maplibregl-popup {
        max-width: 360px !important;
        z-index: 99999 !important;
    }

    .accident-map-wrapper .maplibregl-popup-content {
        border-radius: 18px !important;
        overflow: visible !important;
        max-height: 500px;
        overflow-y: auto !important;
    }

    /* IMPORTANT */
    .accident-map-wrapper #deviceMap {
        overflow: visible !important;
    }